﻿using DelegetAndEventTest.PbulishAndSubscribe;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DelegetAndEventTest
{
    interface ISubscribe
    {
        /// <summary>
        /// 取消订阅
        /// </summary>
        void CancelMessage();
        /// <summary>
        /// 订阅消息
        /// </summary>
        void Subscribtion();
        /// <summary>
        /// 接受消息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void ReciveMessage(object sender,WeatherEventArgs e);
    }
}
